<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <script type="text/javascript" src="js/jquery-1.7.1.js"></script>
    <title>用户列表</title>
    
	<script type="text/javascript">
	function del(id){
		$.get("<%=basePath%>user/delUser?id=" + id,function(data){
			alert(data.result);
		});
	}
	function onChange(){
		var onchangeV=$('#onChange').val();
		//alert(onchangeV);
		location.href="<%=basePath%>work/workList?pageNo="+onchangeV;
	}
	 
</script>
  </head>
  
  <body>
	<table border="1">
		<tbody>
			<tr>
				<th>订单主键</th>
				<th>订单号</th>
				<th>物料id</th>
				<th>操作</th>
			</tr>
			<c:if test="${!empty workOrderList }">
				<c:forEach items="${workOrderList}" var="workOrder">
					<tr>
						<td>${workOrder.orderid }</td>
						<td>${workOrder.orderNo }</td>
						<td>${workOrder.materialsid }</td>
						<td>
							编辑
							<%-- <a href="<%=basePath%>user/getUser?id=${workOrder.orderid}">编辑</a> --%>
							<%-- <a href="javascript:del('${workOrder.orderid }')">删除</a> --%>
						</td>
					</tr>				
				</c:forEach>
			</c:if>
			
			<tr>
				<td>总页数：${allPage}</td>
				<td>总记录数:${allSize}</td>
				<td>下一页：${page.pageNo+1}   <a href="<%=basePath%>work/workList?pageNo=${page.pageNo+1}">下一页</a></td>
				<td>跳转到：<input type="text"  onblur="onChange();"  id="onChange" ></td>
			</tr>
			
			
			
		</tbody>
	</table>
  </body>
</html>
